package com.yg.entity.readAndWriteEntity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 对应sheet07，是教学成果和教学奖励表
 * </p>
 *
 * @author YingGu
 * @since 2020-11-07
 */
@Data
@Scope("prototype")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TeacherAchievementAward对象", description = "对应sheet07，是教学成果和教学奖励表")
public class TeacherAchievementAwardTemplate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "教学成果和教学奖励id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    private String id;

    @ExcelProperty(index = 0)
    private Integer number;

    @ApiModelProperty(value = "教学成果名称")
    @ExcelProperty(index = 1)
    private String achievementName;

    @ApiModelProperty(value = "教学奖励名称")
    @ExcelProperty(index = 2)
    private String rewardName;

    @ApiModelProperty(value = "省部级奖励的级别")
    @ExcelProperty(index = 3)
    private String awardProvinceLevel;

    @ApiModelProperty(value = "校级奖励的级别")
    @ExcelProperty(index = 4)
    private String awardSchoolLevel;

    @ApiModelProperty(value = "项目名称")
    @ExcelProperty(index = 5)
    private String name;

    @ApiModelProperty(value = "所有完成人")
    @ExcelProperty(index = 6)
    private String personsInvolv;

    @ApiModelProperty(value = "获奖时间")
    @ExcelProperty(index = 7)
    @DateTimeFormat("yyyy-MM-dd")
    private String time;

    @ApiModelProperty(value = "批准单位")
    @ExcelProperty(index = 8)
    private String approvalUnits;

    @ApiModelProperty(value = "获奖证书编号")
    @ExcelProperty(index = 9)
    private String certificateNumber;


}
